﻿@{
    ViewBag.Title = "Index";
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@(ZP.Common.ZPCommon.System_Name)</title>
    <link href="~/Content/plugins/pear/css/pear.css" rel="stylesheet" />
    <link href="~/Content/plugins/admin/css/other/login.css" rel="stylesheet" />
</head>
<!-- 代 码 结 构 -->
<body background="~/Content/plugins/admin/images/background2.svg" style="background-size: cover;">

    <form id="loginForm" class="layui-form" action="javascript:void(0);">
        <div class="layui-form-item">
            <img class="logo" src="~/Content/plugins/admin/images/logo.png" />
            <div class="title">欢 迎 使 用</div>
            <div class="desc" style="font-size: 18px;">
                格 太 政 策 申 请 自 评 价 管 理 系 统
            </div>
        </div>
        <div class="layui-form-item">
            <input type="text" name="Account" placeholder="账 户" value="" hover class="layui-input" />
        </div>
        <div class="layui-form-item">
            <input type="password" name="Password" placeholder="密 码" accept="" hover class="layui-input" />
        </div>
        @*<div class="layui-form-item">
                <input placeholder="验证码 : " hover class="code layui-input layui-input-inline" />
                <img src="~/Content/plugins/admin/images/captcha.gif" class="codeImage" />
            </div>*@
        <div class="layui-form-item" style="@(ZP.Common.ZPCommon.isVerification == "1" ? "":"display:none;")">
            <div id="psi-captcha"></div>
            <input type="hidden" name="Token" />
            <input type="hidden" id="isCode" value="@(ZP.Common.ZPCommon.isVerification)" />
        </div>
        <div class="layui-form-item">
            <input type="checkbox" name="" title="记住密码" lay-skin="primary" checked>
        </div>
        <div class="layui-form-item">
            <button id="btnSubmit" class="pear-btn pear-btn-success login" lay-submit lay-filter="login">
                登 入
            </button>
        </div>
        @*<p class="text-muted text-center">
            <a href="/PSIUser/findPassword"><small>忘记密码了？</small></a> <!-- | <a href="register">注册一个新账号</a> -->
            </p>*@
    </form>

    <script src="~/Content/plugins/jquery.min.js"></script>
    <script src="~/Content/zp/js/common.js"></script>
    <script src="~/Content/zp/js/Login/index.js?v=@(ZP.Common.ZPCommon.ZP_Version)"></script>
    <!-- 资 源 引 入 -->
    <script src="~/Content/plugins/layui/layui.js"></script>
    <script src="~/Content/plugins/pear/pear.js"></script>
    <script>
        layui.use(['form', 'element', 'jquery', 'button', 'popup'], function () {
            var form = layui.form;
            var element = layui.element;
            var button = layui.button;
            var popup = layui.popup;
            var $ = layui.jquery;

            // 登 录 提 交
            //form.on('submit(login)', function(data) {
            //    button.load({
            //        elem: '.login',
            //        time: 1500,
            //        done: function() {
            //            popup.success("登录成功", function() {
            //                location.href = "index.html"
            //            });
            //        }
            //    })
            //    return false;
            //});
        })
    </script>

    <script src="//cdn.dingxiang-inc.com/ctu-group/captcha-ui/index.js"></script>
    <script type="text/javascript">
        var captcha = _dx.Captcha(document.getElementById('psi-captcha'), {
            appId: "@(ZP.Common.ZPCommon.ZP_DX_APPID)",
            style: 'inline',
            width: 320,
            success: function (token) {
                document.getElementsByName('Token')[0].value = token;
            }
            , fail: function (errorMsg) {
                //console.log(errorMsg);
            }
        });
    </script>

</body>
</html>
